package org.ttitfly.workflow.engine.basic.parser;

import org.ttitfly.workflow.engine.Process;
import org.ttitfly.workflow.exception.ProcessDefineException;
import org.w3c.dom.Element;


/**
 * 流程定义元素解释器
 * 
 * @author 潘海春
 * @version 2009-9-22
 */
public interface ProcessElementParser {

	/**
	 * 流程元素解释
	 * 
	 * @param element
	 *            流程定义xml文档process元素
	 * @return
	 * @throws ProcessDefineException
	 *             流程定义有误时或xml文档解释出错时抛出
	 */
	Process parse(Element element) throws ProcessDefineException;
}
